package com.qingcloud.fexecutor.mapper;

import com.qingcloud.fexecutor.base.mapper.WmBaseMapper;
import com.qingcloud.fexecutor.model.AppDataSource;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 应用数据源.
 */
public interface AppDataSourceMapper extends WmBaseMapper<AppDataSource> {

    /**
     * 根据编码查询数据源信息
     */
    List<AppDataSource> findByCode(@Param("appId") Integer appId, @Param("codes") Collection<String> codes);
}
